/**
 * 
 */
package com.rio.dandan.bean;

import java.util.List;

import com.google.gson.annotations.Expose;

/**
 * 
 * PageBean.java
 * 
 * @author 宋陆
 * @version 1.0 2014年5月21日
 */
public class PageBean<T> {
    @Expose
    private int currPage;
    @Expose
    private int pageSize;
    @Expose
    private List<T> rows;
    @Expose
    private int total;

    /**
     * @return the start
     */
    public int getStart() {
        return (this.currPage - 1) * this.pageSize;
    }

    /**
     * @return the currPage
     */
    public int getCurrPage() {
        return currPage;
    }

    /**
     * @param currPage
     *            the currPage to set
     */
    public void setCurrPage(int currPage) {
        this.currPage = currPage;
    }

    /**
     * @return the pageSize
     */
    public int getPageSize() {
        return pageSize;
    }

    /**
     * @param pageSize
     *            the pageSize to set
     */
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * @return the limit
     */
    public int getLimit() {
        return this.pageSize;
    }

    /**
     * @return the rows
     */
    public List<T> getRows() {
        return rows;
    }

    /**
     * @param rows
     *            the rows to set
     */
    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    /**
     * @return the total
     */
    public int getTotal() {
        return total;
    }

    /**
     * @param total
     *            the total to set
     */
    public void setTotal(int total) {
        this.total = total;
    }

}
